Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Bomb only sets first round

  1. #11

    Default

    Check! I'll add them as extra files so people can choose
    Cheers!

  2. #12

    Default

    Managed to fix El Alamein, with DK's previous help.

    El_Alamein.pk3

    Default SCR
    // Obj_El_alamein
    // création jules.fr (c)
    // 2003
    
    main:
    
    setcvar "g_obj_alliedtext1" "- Détruire le derrick"
    
    setcvar "g_obj_axistext1" "- Protéger le derrick"
    setcvar "g_obj_axistext2" " "
    setcvar "g_obj_axistext3" ""
    
    setcvar "g_scoreboardpic" ""
    
    level waittill prespawn
    
    //*** Precache Dm Stuff
    exec global/DMprecache.scr
    
    exec global/door_locked.scr::lock
    exec global/minefield.scr
    exec global/ambient.scr m5l1b
    
    level.script = maps/obj/obj_El_alamein.scr
    exec global/ambient.scr
    
    thread global/exploder.scr::main
    
    level waittill spawn
    
    level.defusing_team = "axis"
    level.planting_team = "allies"
    level.bomb_damage = 200
    level.bomb_explosion_radius = 2048
    
    // set the parameters for round based match
    level.dmrespawning = 0 // 1 or 0
    level.dmroundlimit = 5 // round time limit in minutes
    level.clockside = axis // set to axis, allies, kills, or draw
    
    // level waittill roundstart
    
    
    $explosion_puit thread global/obj_dm.scr::bomb_thinker
    $bombe_fictive thread global/obj_dm.scr::bomb_thinker
    
    
    thread allies_win_bomb $explosion_puit
    thread allies_win_bomb $bombe_fictive
    $bombe_fictive thread axis_win_timer
    
    // thread objectives_setup
    end
    
    
    allies_win_bomb local.bomb2:
    
    while (local.bomb1.exploded != 1)
    wait .1
    
    teamwin allies
    end
    
    //*** --------------------------------------------
    //*** "Axis Victory"
    //*** --------------------------------------------
    
    axis_win_timer:


    Fixed SCR
    // Obj_El_alamein
    // création jules.fr (c)
    // 2003
    
    main:
    switch (waitthread global/libmef/util.scr::get_gametype)
    	{
    		case "ctf":
    		case "ftctf":
    		case "dem":
    		case "ftdem":
    			waitthread setup_bases
    			break
    
    		case "obj":
    		case "ftobj":
    			thread objectivethread
    			break
    	}
    setcvar "g_obj_alliedtext1" "- Détruire le derrick"
    
    setcvar "g_obj_axistext1" "- Protéger le derrick"
    setcvar "g_obj_axistext2" " "
    setcvar "g_obj_axistext3" ""
    
    setcvar "g_scoreboardpic" ""
    
    level waittill prespawn
    
    //*** Precache Dm Stuff
    exec global/DMprecache.scr
    
    exec global/door_locked.scr::lock
    exec global/minefield.scr
    exec global/ambient.scr m5l1b
    
    level.script = maps/obj/obj_El_alamein.scr
    exec global/ambient.scr
    
    thread global/exploder.scr::main
    
    level waittill spawn
    
    level.defusing_team = "axis"
    level.planting_team = "allies"
    level.targets_to_destroy = 1
    level.bomb_damage = 200
    level.bomb_explosion_radius = 2048
    
    // set the parameters for round based match
    level.dmrespawning = 1 // 1 or 0
    level.dmroundlimit = 5 // round time limit in minutes
    level.clockside = axis // set to axis, allies, kills, or draw
    
    // level waittill roundstart
    
    
    $explosion_puit thread global/libmef/bomb.scr::bomb_thinker
    //$bombe_fictive thread global/libmef/bomb.scr::bomb_thinker
    
    
    thread allies_win_bomb
    $explosion_puit thread axis_win_timer
    
    // thread objectives_setup
    end
    
    allies_win_bomb:
    while(level.targets_destroyed < level.targets_to_destroy)
    		waitframe
    
    	waitthread global/libmef/util.scr::do_teamwin allies
    
    end
    
    //*** --------------------------------------------
    //*** "Axis Victory"
    //*** --------------------------------------------
    
    axis_win_timer:
    	level waittill axiswin
    end

  3. #13

    Default

    Added to the database as well

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •